<table class="table table-striped">
    <thead>
        <tr>
            <th>用户ID</th>
            <th>微信昵称</th>
            <th>提现金额</th>
            <th>订单号</th>
            <th>注册日期</th>
        </tr>
    </thead>
    <tbody>
    {volist name="row" id="r"}
        <tr>
            <td>{$r.user_id}</td>
            <td>{$r.nickname}</td>
            <td class="amount">{$r.amount}</td>
            <td>{$r.trade_no}</td>
            <td class="addtime">{$r.add_time|date='Y-m-d',###}</td>
        </tr>

    {/volist}
    <tr>
        <th>总计</th>
        <th id="amounts"></th>
        <th id="addtimes"></th>
        <th>余额</th>
        <th>{$ye}</th>
    </tr>
    </tbody>
</table>
<form action="{:Url('forward.forward/export',array('ids'=>$ids))}" method="GET"><input type="submit" value="导出"></form>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>
<script src="__PUBLIC__assets/js/jquery-1.11.3.min.js"></script>
<script>
$(function () {
    var sum=0;
    for(var i=0;i<$(".amount").length;i++){
        sum += parseFloat($(".amount").get(i).innerHTML);
    }
    $('#amounts').text(sum.toFixed(2));

})
    
</script>